<!DOCTYPE html>
<html>
<head>
    <title>订单项信息</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("order:orderitem:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("order:orderitem:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("order:orderitem:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">order_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.orderId" placeholder="order_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">order_sn</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.orderSn" placeholder="order_sn"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">spu_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.spuId" placeholder="spu_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">spu_name</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.spuName" placeholder="spu_name"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">spu_pic</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.spuPic" placeholder="spu_pic"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">品牌</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.spuBrand" placeholder="品牌"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品分类id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.categoryId" placeholder="商品分类id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品sku编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuId" placeholder="商品sku编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品sku名字</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuName" placeholder="商品sku名字"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品sku图片</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuPic" placeholder="商品sku图片"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品sku价格</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuPrice" placeholder="商品sku价格"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品购买的数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuQuantity" placeholder="商品购买的数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品销售属性组合（JSON）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.skuAttrsVals" placeholder="商品销售属性组合（JSON）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品促销分解金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.promotionAmount" placeholder="商品促销分解金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">优惠券优惠分解金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.couponAmount" placeholder="优惠券优惠分解金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">积分优惠分解金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.integrationAmount" placeholder="积分优惠分解金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">该商品经过优惠后的分解金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.realAmount" placeholder="该商品经过优惠后的分解金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">赠送积分</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.giftIntegration" placeholder="赠送积分"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">赠送成长值</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.giftGrowth" placeholder="赠送成长值"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/order/orderitem.js?_${.now?long}"></script>
</body>
</html>